<%@ Page Language="C#" MasterPageFile="~/MP/Classic.master" AutoEventWireup="true"
    Inherits="Login" CodeBehind="Login.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageContainer" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Login ID="LoginControl" runat="server" CreateUserText="Sign Up" CreateUserUrl="~/Register.aspx"
                OnLoggedIn="LoginControl_LoggedIn" TitleText="" OnLoggingIn="LoginControl_LoggingIn">
                <LayoutTemplate>
                    <table border="0">
                        <tr>
                            <td colspan="2">
                                <h1>
                                    Log in</h1>
                                <br />
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td class="form-label">
                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>
                            </td>
                            <td colspan="2">
                                <asp:TextBox ID="UserName" runat="server" Width="150px"></asp:TextBox><asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                    ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="LoginControl" class="error">User Name is required</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="form-label">
                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                            </td>
                            <td colspan="2">
                                <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="150px"></asp:TextBox><asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                    ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="LoginControl" class="error" >Password is required</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." />
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" align="center">
                                <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="LoginControl"
                                    Width="75px" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td style="color: red">
                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                            </td>
                            <td style="color: red">
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td style="color: red">
                                &nbsp;
                            </td>
                            <td style="color: red">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                If you are not a registered user,
                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Register.aspx">Sign Up here.</asp:HyperLink>
                            </td>
                            <td style="color: red">
                            </td>
                        </tr>
                    </table>
                </LayoutTemplate>
            </asp:Login>
            <asp:Label ID="globalFailureText" runat="server" ForeColor="Red"></asp:Label>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
